package com.un.ebs.inventory.domain;

import java.util.Date;
import com.un.ebs.inventory.enums.InventoryTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InventoryNoteExt)表实体类
 *
 * @author liubo
 * @since 2020-10-11 22:41:39
 */
@Data
@Component
@TableName("v_inventory_note_ext")
@SuppressWarnings("serial")
public class InventoryNoteExt extends Model<InventoryNoteExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "warehouse_id", length = 40, precision = 0)
    private String warehouseId;

    @DbField(name = "warehouse_to_id", length = 40, precision = 0)
    private String warehouseToId;

    @DbField(name = "note_type_id", length = 40, precision = 0)
    private String noteTypeId;

    @DbField(name = "note_type_name", length = 100, precision = 0)
    private String noteTypeName;

    @DbField(name = "note_type_code", length = -1, precision = 0)
    private Integer noteTypeCode;

    @DbField(name = "inventory_type", length = -1, precision = 0)
    private InventoryTypeEnum inventoryType;

    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;

    @DbField(name = "ent_name", length = 100, precision = 0)
    private String entName;

    @DbField(name = "contract_code", length = 100, precision = 0)
    private String contractCode;

    @DbField(name = "relation_note_id", length = 40, precision = 0)
    private String relationNoteId;

    @DbField(name = "relation_note_code", length = 50, precision = 0)
    private String relationNoteCode;

    @DbField(name = "relation_note_type_id", length = 40, precision = 0)
    private String relationNoteTypeId;

    @DbField(name = "code", length = 100, precision = 0)
    private String code;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_time", length = -1, precision = 0)
    private Date createTime;

    @DbField(name = "submit_status", length = -1, precision = 0)
    private Boolean submitStatus;

    @DbField(name = "submit_time", length = -1, precision = 0)
    private Date submitTime;

    @DbField(name = "submit_at", length = 40, precision = 0)
    private String submitAt;

    @DbField(name = "submit_at_name", length = 100, precision = 0)
    private String submitAtName;

    @DbField(name = "audit_at", length = 40, precision = 0)
    private String auditAt;

    @DbField(name = "audit_at_name", length = 100, precision = 0)
    private String auditAtName;

    @DbField(name = "audit_time", length = -1, precision = 0)
    private Date auditTime;

    @DbField(name = "audit_status", length = -1, precision = 0)
    private Boolean auditStatus;

    @DbField(name = "account_year", length = -1, precision = 0)
    private Integer accountYear;

    @DbField(name = "account_month", length = -1, precision = 0)
    private Integer accountMonth;

    @DbField(name = "personnel_id", length = 40, precision = 0)
    private String personnelId;

    @DbField(name = "personnel_name", length = 100, precision = 0)
    private String personnelName;

    @TableLogic
    @DbField(name = "is_delete", length = -1, precision = 0)
    private Boolean isDelete;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "warehouse_code", length = 10, precision = 0)
    private String warehouseCode;

    @DbField(name = "warehouse_name", length = 100, precision = 0)
    private String warehouseName;

    @DbField(name = "warehouse_to_code", length = 10, precision = 0)
    private String warehouseToCode;

    @DbField(name = "warehouse_to_name", length = 100, precision = 0)
    private String warehouseToName;

    @DbField(name = "sum_qty", length = 38, precision = 4)
    private Double sumQty;

    @DbField(name = "sum_money", length = 38, precision = 10)
    private Double sumMoney;

    @DbField(name = "print_template", length = 100, precision = 0)
    private String printTemplate;

    @DbField(name = "back_parent_id", length = 40, precision = 0)
    private String backParentId;

    @DbField(name = "workflow_pass_status", length = -1, precision = 0)
    private Boolean workflowPassStatus;

    @DbField(name = "workflow_instance_id", length = 40, precision = 0)
    private String workflowInstanceId;

    @DbField(name = "finance_code", length = 20, precision = 0)
    private String financeCode;

    private String financeId;

    @DbField(name = "finance_send_time", length = -1, precision = 0)
    private Date financeSendTime;

    private double planCheckQty;

    private Boolean qualityPassStatus;


}